home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 115
/
FreelogNo115-MaiJuin2013.iso
/
Internet
/
Filezilla Server
/
FileZilla_Server-0_9_41.exe
/
source
/
xml_utils.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2011-11-06
|
487b
|
24 lines
#include "StdAfx.h"
#include "xml_utils.h"
#include "conversion.h"
#include "tinyxml/tinyxml.h"
namespace XML
{
CStdString ReadText(TiXmlElement* pElement)
{
TiXmlNode* textNode = pElement->FirstChild();
if (!textNode || !textNode->ToText())
return _T("");
return ConvFromNetwork(textNode->Value());
}
void SetText(TiXmlElement* pElement, const CStdString& text)
{
pElement->Clear();
pElement->LinkEndChild(new TiXmlText(ConvToNetwork(text)));
}
}